package com.wfs.suanfa.nio.demo.bytebuffer;

import io.netty.buffer.CompositeByteBuf;
import io.netty.buffer.Unpooled;

public class CompositeByteBufTest {
    public static void main(String[] args) {
        CompositeByteBuf mesg= Unpooled.compositeBuffer();
        //获取可读字节数
        int i = mesg.readableBytes();
        byte[] bytes = new byte[i];
        mesg.getBytes(mesg.readerIndex(),bytes);

    }
}
